//
//  CustomHeaderView.m
//  SYiDaiy
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomHeaderView.h"
#import "UIView+Frame.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation CustomHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageView1 = [[UIImageView alloc] creatImageViewWithFrame:CGRectZero backgroudColor:[UIColor redColor]];
        [self addSubview:_imageView1];
        _label1 = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor redColor] font:[UIFont systemFontOfSize:16]];
        _label1.textColor = [UIColor whiteColor];
        [self addSubview:_label1];
    }
    return self;
}

- (void)layoutSubviews
{
    _imageView1.frame = CGRectMake(0, 0, SCREEN_WIDTH, self.bounds.size.height);
    _label1.frame = CGRectMake(5, self.bounds.size.height - 30, SCREEN_WIDTH - 5, 20);
}







@end
